import { AmbientLight, PointLight,DirectionalLight } from 'three'

/**
 * 光线
 */
export const allLights = []

// 添加环境光（自然光），设置自然光的颜色，设置自然光的强度（0 最暗， 1 最强）

// 点光源
export const pointLight = new PointLight(0xe8eaeb, 1, 0, 0.2)
pointLight.position.set(0, 35, 10) // 设置点光源位置 (x,y,z)


// const axesHelper = new AxesHelper(5);
// scene.add(axesHelper);
export const ambientLight = new AmbientLight(0xd4e7fd, 4);
export const directionalLight = new DirectionalLight(0xe8eaeb, 0.2);
directionalLight.position.set(0, 10, 5);
export const directionalLight2 = directionalLight.clone();
directionalLight2.position.set(0, 10, -5);
export const directionalLight3 = directionalLight.clone();
directionalLight3.position.set(5, 10, 0);
export const directionalLight4 = directionalLight.clone();
directionalLight4.position.set(-5, 10, 0);

allLights.push(pointLight) // 将点光源添加到光源列表抛出

allLights.push(ambientLight)

allLights.push(directionalLight,directionalLight2,directionalLight3,directionalLight4)
